<!-- 刚开始显示页面 -->
<link rel="stylesheet" href="/css/costReportForm/costReportIndex.css">
<div class="cost_report_index">
    <div class="cost_report_index_menu">
        <span id="banbenTooltip">
            <input class="easyui-textbox" id="banben" validateOnBlur="true" data-options="width:170,height:35" prompt="【修改\拷贝】请输入成本单据"
               missingMessage="请输入版本查询!">
        </span>
        <a style="padding-left:5px" href="javascript:void(0)" class="a1"  onclick="costReportAdd()"><i
                class="fa fa-plus-square"></i>新增</a>
        <a style="padding-left:5px" href="javascript:void(0)" class="a2"  onclick="costReportCopy()"><i
                class="fa fa-plus-square-o"></i>拷贝</a>
        <a style="padding-left:5px" href="javascript:void(0)" class="a3"  onclick="costReportUpdata()"><i
                class="fa fa-square"></i>修改</a>
        <a style="padding-left:5px" href="javascript:void(0)" class="a4"  onclick="costReportDelete()"><i
                class="fa fa-minus-square-o"></i>删除</a>
        <a style="padding-left:5px" href="javascript:void(0)" class="a5"  onclick="costReportSu()"><i
                class="fa fa-minus-square"></i>停用/启用</a>
        <a style="padding-left:5px" href="javascript:void(0)" class="a6"  onclick="costReportPrint()"><i
                class="fa fa-file-o"></i>打印页面</a>
        <a style="padding-left:5px" href="javascript:void(0)" class="a7"  onclick="costReportExcel()"><i
                class="fa fa-file-text"></i>导出Excel</a>
    </div>
    <div class="cost_report_index_table">
        <table id="costReportIndexTable" class="easyui-datagrid"
               data-options="pagination:true,rownumbers:true,nowrap:false,singleSelect:true,fitColumns:true,toolbar:'#costReportIndexToolbar',bodyCls:'opal-font_1',height:'100%'">
            <thead>
            <tr>
                <th data-options="field:'appointUserId',width:'5%',hidden:true">授权yonghuid</th>
                <th data-options="field:'userName',width:'5%',align:'center'">申请人</th>
                <th data-options="field:'costReportId',width:'7%',formatter:costReportIndexCostReportIdformatter">
                    成本单据
                </th>
                <th data-options="field:'costReportDate',width:'5%',align:'center'">日期</th>
                <th data-options="field:'finishedProductCode',width:'12%',align:'center'">成本编码</th>
                <th data-options="field:'productName',width:'15%',align:'center'">成品名称</th>
                <th data-options="field:'clientcode',width:'6%',align:'center'">客户编码</th>
                <th data-options="field:'clientName',width:'12%',align:'center'">客户名称</th>
                <th data-options="field:'realityQuotedPrice',width:'6%',align:'center'">实际报价</th>
                <th data-options="field:'grossMarginMoney',width:'6%',align:'center'">整套毛利</th>
                <th data-options="field:'grossMarginRate',width:'7%',align:'center'">整套毛利率</th>
                <th data-options="field:'quotation',width:'7%',align:'center',editor:{type:'textbox'}">报价单编号</th>
                <th data-options="field:'costReportStatus',width:'6%',align:'center',formatter:costReportIndexcostReportStatusformatter">
                    审批状态
                </th>
                <th data-options="field:'costReportStatus2',width:'6%',align:'center',formatter:costReportIndexcostReportCostReportStatus2">
                    报告状态
                </th>
            </tr>
            </thead>
        </table>
        <div id="costReportIndexToolbar">
            <form id="costReportIndexForm">
                <span style="flex: 2">
                日期 <input id="costReportIndexCostReportStartDate" name="startDate" class="easyui-datebox" style="width: 100px">
                -<input id="costReportIndexCostReportEndDate" name="endDate" class="easyui-datebox" style="width: 100px;flex: 2">
                </span>
                <span style="flex: 1">
                成品编码 <input id="costReportIndexCode" name="finishedProductCode3" class="easyui-textbox" style="width: 100px;flex: 1">
                </span>
                <span style="flex: 1">
                成品名称 <input id="costReportIndexProductName" name="productName" class="easyui-textbox" style="width: 100px;flex: 1">
                </span>
                <span style="flex: 1">
                客户编码 <input id="costReportIndexClientcode" name="clientcode" class="easyui-textbox" style="width: 100px;flex: 1">
                </span>
                <span style="flex: 1">
                客户名称 <input id="costReportIndexClientName" name="clientName" class="easyui-textbox" style="width: 100px">
                </span>
                <span style="flex: 1">
                审批状态 <input class="easyui-combobox" name="costReportStatus" value="-1"
                             data-options="valueField:'s',textField:'v',panelHeight:'auto',data:[{s:-1,v:'全部'},{s:0,v:'未审核'},{s:1,v:'审核完成'},{s:2,v:'拒绝'},{s:3,v:'审核中'}]"
                             style="width:90px;flex: 1">
                </span>
                <span style="flex: 1">
                <a onclick="costReportIndexQuery()" class="easyui-linkbutton c1" style="width: 80px">查询</a>
                </span>
            </form>
        </div>
    </div>

    <!--用户窗口-->
    <div id='costReportIndexUpdateQuotationDiv' style="text-align: center;display: none">
        <div>
            <input id="costReportIndexUpdateQuotationDivUserName" class="easyui-textbox" style="width:96%"
                   data-options="prompt:'请输入用户名查询',iconCLs:'icon-search'">
        </div>
        <!--用户树-->
        <ul id='costReportIndexUpdateQuotationInputUser' class="easyui-tree"
            data-options="url:'/manage/user/selectalluserTree?userName='"></ul>
    </div>

    <!-- ---------成本报告窗口- ---------------- -->
    <div id="costReport_dlg" class="easyui-dialog" data-options="modal:'true',closed:'true'"
         style="padding:10px 20px"></div>

    <!-- ---------成本报告锐浪数据表格---------------- -->
    <div id="costReport_Table" class="easyui-dialog" closed="true"></div>

    <script th:inline="none" src="/js/costReportForm/costReportIndex.js"></script>
</div>